-- GENERATED SPELL FOR [Spellbinder Maryana] --


function spell0_19593(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(35927,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19593', 10500, 1)
end

function spell1_19593(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(15091,pUnit)
pUnit:RegisterEvent('Sorts_19593', 6294, 1)
end

function spell2_19593(pUnit, Event) --@Fiery Intellect,Self--
pUnit:FullCastSpellOnTarget(35917,pUnit)
pUnit:RegisterEvent('Sorts_19593', 592, 1)
end

function Sorts_19593(pUnit, Event)
local choix_sorts_19593 = math.random(0, 2)
if choix_sorts_19593 == 0 then
pUnit:RegisterEvent('spell0_19593', 1, 1)
end
if choix_sorts_19593 == 1 then
pUnit:RegisterEvent('spell1_19593', 1, 1)
end
if choix_sorts_19593 == 2 then
pUnit:RegisterEvent('spell2_19593', 1, 1)
end
end

function mob19593_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19593', math.random(1500, 3000), 1)
end

function mob19593_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19593_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19593_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19593, 1, 'mob19593_Action')
RegisterUnitEvent(19593, 2, 'mob19593_Leave')
RegisterUnitEvent(19593, 3, 'mob19593_Kill')
RegisterUnitEvent(19593, 4, 'mob19593_Die')
